package com.grandtech.insurance.dao;

import com.grandtech.insurance.domain.SysAdminarea;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
public interface SysAdminareaDAO {
    int deleteByPrimaryKey(String qhdm);

    int insert(SysAdminarea record);

    int insertSelective(SysAdminarea record);

    SysAdminarea selectByPrimaryKey(String qhdm);

    int updateByPrimaryKeySelective(SysAdminarea record);

    int updateByPrimaryKey(SysAdminarea record);

    //通过区划代码获取区域
    SysAdminarea getByQhdm(String qhdm);

    //获取下一级的行政区划集合
    List<SysAdminarea> getLowArea(Map params);

    //获取下一级的行政区划集合
    List<SysAdminarea> getLowAreaNew(Map params);

}